<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>新星管理</title>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="format-detection" content="telephone=no"/>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all" />
    <link rel="stylesheet" th:href="@{/css/style.css}" media="all" />
</head>

<body class="childrenBody">
<blockquote class="layui-elem-quote actor_search">
    <div class="layui-inline">
        <div class="layui-input-inline">
            <input type="text" value="" placeholder="请输入关键字" class="layui-input search_input" id="searchInput"/>
        </div>
        <a class="layui-btn search_btn" id="searchBtn">查询</a>
    </div>
    <div class="layui-inline">
        <a class="layui-btn layui-btn-normal actorAdd_btn">添加新星</a>
    </div>
</blockquote>
<div class="layui-form actors_list" id="actors_list">
    <table class="layui-table">
        <!--<colgroup>-->
            <!--<col width="50"/>-->
            <!--<col width="20%"/>-->
            <!--<col width="20%"/>-->
            <!--<col width="20%"/>-->
            <!--<col width="20%"/>-->
        <!--</colgroup>-->
        <thead>
        <tr>
            <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"/></th>
            <th>名字</th>
            <th>性别</th>
            <th>身高</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="actors_content" id="actorListTb">

        </tbody>
    </table>
</div>
<div id="pagination">
</div>


<script type="text/html" id="actorList">
    {{if list != null}}
    {{each list as value i}}
    <tr>
        <td><input actorId="{{value.id}}" tId="{{value.tId}}" type="checkbox" name="checked" lay-skin="primary" lay-filter="choose"/></td>
        <td style="text-align:left;" actorId="{{value.id}}">{{value.name}}</td>
        {{if (value.gender == 0)}}
            <td>男</td>
        {{else if value.gender == 1}}
            <td>女</td>
        {{else}}
            <td>未知</td>
        {{/if}}
        <td>{{value.height}}cm</td>
        <td>
            <a class="layui-btn layui-btn-mini actor_edit"><i class="iconfont icon-edit"></i>编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-mini actor_del"><i class="layui-icon">&#xe640;</i>删除</a>
        </td>
    </tr>
    {{/each}}
    {{else}}
    <tr style="text-align: center;"><td colspan="5">暂无数据</td></tr>
    {{/if}}
</script>


<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/js/person/actorList.js}"></script>
<script type="text/javascript" th:src="@{/js/common/template.js}"></script>


</body>
</html>